<?php

use App\EventHandler\HandlerBase;
use App\EventHandler\HandlerRegister;
use EasySwoole\EasySwoole\Core;
use EasySwoole\EasySwoole\EasySwooleEvent;

require_once __DIR__ . '/vendor/autoload.php';

Core::getInstance()->initialize();

foreach(HandlerRegister::getHandler() as $class){
    $obj = new $class();
    if($obj instanceof HandlerBase){
        $obj->handle();
    }
}